package com.gongpb.langchain4j.demo.manus.agent;

import com.gongpb.langchain4j.demo.manus.tool.ToolResult;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class ReActAgent extends Agent{
    public abstract boolean think();
    // 工具调用
    public abstract ToolResult action();

    public ToolResult step() {
        if (think()){
            log.info("");
        }
        return action();
    }
}
